package com.shunt.dao.impl;

import com.shunt.dao.UserMapper;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

/**
 * Created by liang on 2017/11/24.
 */
@Repository
public class BaseDaoImpl {
	protected  Logger logger = Logger.getLogger(getClass());

	@Autowired
	private UserMapper userMapper;



	public String getName(int id){
		return userMapper.selectByPrimaryKey(id).getName();
	}
}
